home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / orient / p_l_dll.frm < prev    next >
Text File  |  1995-05-08  |  2KB  |  69 lines

  1. VERSION 2.00
  2. Begin Form Form2 
  3.    Caption         =   "Form2"
  4.    ClientHeight    =   3720
  5.    ClientLeft      =   285
  6.    ClientTop       =   1560
  7.    ClientWidth     =   7485
  8.    Height          =   4125
  9.    Left            =   225
  10.    LinkTopic       =   "Form2"
  11.    ScaleHeight     =   3720
  12.    ScaleWidth      =   7485
  13.    Top             =   1215
  14.    Width           =   7605
  15.    Begin CommandButton Command4 
  16.       Caption         =   "flip it"
  17.       Height          =   375
  18.       Left            =   3120
  19.       TabIndex        =   3
  20.       Top             =   2520
  21.       Width           =   1455
  22.    End
  23.    Begin CommandButton Command3 
  24.       Caption         =   "landscape"
  25.       Height          =   375
  26.       Left            =   3120
  27.       TabIndex        =   2
  28.       Top             =   480
  29.       Width           =   1455
  30.    End
  31.    Begin CommandButton Command2 
  32.       Caption         =   "portrait"
  33.       Height          =   375
  34.       Left            =   3120
  35.       TabIndex        =   1
  36.       Top             =   1080
  37.       Width           =   1455
  38.    End
  39.    Begin CommandButton Command1 
  40.       Caption         =   "whatisit"
  41.       Height          =   375
  42.       Left            =   3120
  43.       TabIndex        =   0
  44.       Top             =   1800
  45.       Width           =   1455
  46.    End
  47. End
  48. Declare Function PPOrient Lib "PPORIENT.DLL" (ByVal hWnd As Integer, ByVal Orient As Integer) As Integer
  49.  
  50. Sub Command1_Click ()
  51.     MsgBox Str$(PPOrient(hWnd, 0)), 0, "Orientation"
  52. End Sub
  53.  
  54. Sub Command2_Click ()
  55.     was% = PPOrient(hWnd, 1)
  56.     MsgBox Str$(PPOrient(hWnd, 0)), 0, "Orientation"
  57. End Sub
  58.  
  59. Sub Command3_Click ()
  60.     was% = PPOrient(hWnd, 2)
  61.     MsgBox Str$(PPOrient(hWnd, 0)), 0, "Orientation"
  62. End Sub
  63.  
  64. Sub Command4_Click ()
  65.     was% = PPOrient(hWnd, 3)
  66.     MsgBox Str$(PPOrient(hWnd, 0)), 0, "Orientation"
  67. End Sub
  68.  
  69.